home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -serious- / programming / other / hexy / src / hexy_protos.h < prev    next >
Text File  |  1999-09-06  |  7KB  |  207 lines

  1.  
  2. /*
  3.  * [!BGN - MACHINE GENERATED - DO NOT EDIT THIS HEADER]
  4.  *
  5.  * Program   : Hexy (Binary file viewer/editor for the Amiga.)
  6.  * Version   : 1.6
  7.  * File      : Work:Source/!WIP/HisoftProjects/Hexy/Hexy_protos.h
  8.  * Author    : Andrew Bell
  9.  * Copyright : Copyright © 1998-1999 Andrew Bell (See GNU GPL)
  10.  * Created   : Saturday 28-Feb-98 16:00:00
  11.  * Modified  : Sunday 22-Aug-99 23:31:45
  12.  * Comment   : 
  13.  *
  14.  * (Generated with StampSource 1.2 by Andrew Bell)
  15.  *
  16.  * [!END - MACHINE GENERATED - DO NOT EDIT THIS HEADER]
  17.  *
  18.  */
  19.  
  20.  
  21. /*
  22.  *  Hexy, binary file viewer and editor for the Amiga.
  23.  *  Copyright (C) 1999 Andrew Bell
  24.  *
  25.  *  Author's email address: andrew.ab2000@bigfoot.com
  26.  *
  27.  *  This program is free software; you can redistribute it and/or modify
  28.  *  it under the terms of the GNU General Public License as published by
  29.  *  the Free Software Foundation; either version 2 of the License, or
  30.  *  (at your option) any later version.
  31.  *
  32.  *  This program is distributed in the hope that it will be useful,
  33.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  34.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  35.  *  GNU General Public License for more details.
  36.  *
  37.  *  You should have received a copy of the GNU General Public License
  38.  *  along with this program; if not, write to the Free Software
  39.  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  40.  *
  41.  */
  42.  
  43.  
  44. /* Hexy_main.c          */
  45.  
  46. Prototype BOOL InitPrg( void );
  47. Prototype void ExitPrg( void );
  48. Prototype void ParseEvents( void );
  49. Prototype void DEBUG( void );
  50. Prototype void IDCMP_MAIN( void );
  51. Prototype BOOL IDCMP_CheckRAWKEYS( void );
  52. Prototype ULONG stream[], aa[], WaitFlags, SigFlag_IDCMP;
  53. Prototype UBYTE CurFileLoaded[];
  54. Prototype BOOL NoFileToLoad;
  55. Prototype struct VCtrl VC;
  56. Prototype struct Process *Proc;
  57. Prototype struct WBStartup *HexyWBMsg;
  58. Prototype struct RDArgs *ArgInfo;
  59. Prototype struct MsgPort *WinPort;
  60. Prototype UWORD _VERSION;
  61. Prototype UWORD _REVISION;
  62. Prototype UBYTE _DATE[];   
  63. Prototype UBYTE _VERS[];
  64. Prototype UBYTE _VSTRING[];
  65. Prototype UBYTE _VERSTAG[];
  66. Prototype UWORD putChProc[];
  67. Prototype BOOL GUIActive;
  68. Prototype struct FileRequester *FR;
  69. Prototype struct rtReqInfo *RTFR;
  70. Prototype struct Library *ReqToolsBase;
  71. Prototype struct Library *WorkbenchBase;
  72. Prototype struct IntuiMessage IM;
  73. Prototype struct Gadget *Gad;
  74.  
  75. /* Hexy_functions.c     */
  76.  
  77. Prototype BOOL UnpackFile(struct VCtrl *TmpVC);
  78. Prototype BOOL CheckForViruses(struct VCtrl *TmpVC);
  79. Prototype UWORD CheckXPK(struct VCtrl *TmpVC);
  80. Prototype ULONG ConvertBinStr(void *Source, void *Dest);
  81. Prototype void UpdateBinResult( void );
  82. Prototype void DisplayFileInfos(struct VCtrl *TmpVC);
  83. Prototype BOOL ValidFile(struct VCtrl *TmpVC);
  84. Prototype BOOL LMBActive( void );
  85. Prototype void FreeVC(struct VCtrl *TmpVC);
  86. Prototype void FlashScreen( void );
  87. Prototype BOOL EnableFlash;
  88. Prototype struct Library *xfdMasterBase;
  89. Prototype struct Library *FilevirusBase;
  90. Prototype struct Library *XpkBase;
  91. Prototype struct XpkFib *XFIB;
  92.  
  93. /* Hexy_edit.c          */
  94.  
  95. Prototype void Edit_Begin( void );
  96. Prototype void Edit_End( void );
  97. Prototype void Edit_DisplayCursor( void );
  98. Prototype void Edit_WriteChar( register __d0 LONG TempCursorOffset, register __d1 UBYTE Ch );
  99. Prototype void Edit_WipeCursor( void );
  100. Prototype BOOL Edit_ShiftCursor( register __d0 LONG Offset );
  101. Prototype BOOL Edit_DoEditIDCMP( struct IntuiMessage *IM );
  102. Prototype BOOL EditFlag;
  103.  
  104. /* Hexy_fileio.c        */
  105.  
  106. Prototype BOOL ReadFile( UBYTE *FileName, struct VCtrl *VC );
  107. Prototype UBYTE *ObtainInFile( void );
  108. Prototype UBYTE *ObtainOutFile( void );
  109. Prototype void SaveSplit( struct VCtrl *TmpVC );
  110. Prototype void SaveToNewLocation( struct VCtrl *TmpVC );
  111.  
  112. /* Hexy_wb.c            */
  113.  
  114. Prototype BOOL InitCX( void );
  115. Prototype void FreeCX( void );
  116. Prototype BOOL DoCxEvent( void );
  117. Prototype BOOL InitApp( void );
  118. Prototype void FreeApp( void );
  119. Prototype void KillAppIcon( void );
  120. Prototype BOOL DoIconify( void );
  121. Prototype BOOL DoAppEvent( void );
  122. Prototype ULONG CxErrCode;
  123. Prototype CxObj *CxBrok;
  124. Prototype struct MsgPort *CxMP;
  125. Prototype ULONG SigFlag_Cx;
  126. Prototype struct MsgPort *AppMP;
  127. Prototype ULONG SigFlag_App;
  128. Prototype struct AppIcon *AI;
  129.  
  130. /* Hexy_guicontrol.c    */
  131.  
  132. Prototype BOOL ViewGUI( void );
  133. Prototype void ClearGUI( void );
  134. Prototype void SwapPort(struct Window *Win, struct MsgPort *NewMP);
  135. Prototype void FlushWindow(struct Window *Win);
  136. Prototype void SetMODE( void );
  137. Prototype void UpdateMODE( void );
  138. Prototype UBYTE *MakeUniqueScrName( UBYTE *FmtString, UBYTE *PubScreenNameBuf );
  139. Prototype void PrintStatus( register __a0 UBYTE *String, register __a1 APTR Fmt );
  140. Prototype void SetVDragBar( struct VCtrl *CurVC );
  141. Prototype void DoError( BOOL UseDOS );
  142. Prototype LONG SetupScreen( void );
  143. Prototype void CloseDownScreen( void );
  144.  
  145.  
  146.  
  147. Prototype LONG OpenJUMPWindow( void );
  148. Prototype void CloseJUMPWindow( void );
  149. Prototype void JUMPRender( void );
  150. Prototype LONG OpenMAINWindow( void );
  151. Prototype void CloseMAINWindow( void );
  152. Prototype void MAINRender( void );
  153. Prototype LONG OpenFINDWindow( void );
  154. Prototype void CloseFINDWindow( void );
  155. Prototype void FINDRender( void );
  156. Prototype LONG OpenHUNKLISTWindow( void );
  157. Prototype LONG CloseHUNKLISTWindow( void );
  158.  
  159.  
  160.  
  161. Prototype void HexyInformation( UBYTE *String, APTR Fmt );
  162. Prototype struct Screen *HexyScreen;
  163. Prototype ULONG ScreenError;
  164. Prototype UBYTE PubScreenNameBuf[];
  165. Prototype struct PubScreenNode *HexyPSN;
  166. Prototype struct Screen *Scr;
  167. Prototype struct Gadget *MAINGList;
  168. Prototype struct Gadget *MAINGadgets[];
  169. Prototype struct Window *MAINWnd;
  170. Prototype struct Gadget *FINDGadgets[];
  171. Prototype struct Window *FINDWnd;
  172. Prototype struct Gadget *FINDGList;
  173. Prototype struct Gadget *HUNKLISTGadgets[];
  174. Prototype struct Window *HUNKLISTWnd;
  175. Prototype struct Gadget *HUNKLISTGList;
  176. Prototype struct Gadget *JUMPGadgets[];
  177. Prototype struct Window *JUMPWnd;
  178. Prototype struct Menu *MAINMenus;
  179.  
  180. /* Hexy_winjump.c       */
  181.  
  182. Prototype void ViewJumpWindow( void );
  183. Prototype void ClearJumpWindow( void );
  184. Prototype void UpdateFindWindow( void );
  185. Prototype void IDCMP_JUMP( void );
  186.  
  187. /* Hexy_winhunk.c       */
  188.  
  189. Prototype void ViewHunkListWindow( void );
  190. Prototype void ClearHunkListWindow( void );
  191. Prototype void UpdateHunkListWindow( void );
  192. Prototype void IDCMP_HUNKLIST( void );
  193. Prototype void BuildHunkList( void );
  194. Prototype void RemoveHunkList( void );
  195. Prototype struct HunkListNode *AddHunkListEntry( UBYTE *String, APTR Fmt, ULONG Offset );
  196. Prototype struct HunkListNode *GetHLNAddress( ULONG Index );
  197.  
  198. /* Hexy_winfind.c       */
  199.  
  200. Prototype void ViewFindWindow( void );
  201. Prototype void ClearFindWindow( void );
  202. Prototype void UpdateJumpWindow( void );
  203. Prototype void IDCMP_FIND( void );
  204.  
  205. /* MACHINE GENERATED */
  206.  
  207.